.class public Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;
.super Landroidx/constraintlayout/widget/ConstraintLayout;
.source "ImageToolsView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/SeekBar;

.field private f:Landroid/widget/CheckBox;

.field private g:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a:Landroid/content/Context;

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->b()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->d:Landroid/widget/TextView;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a:Landroid/content/Context;

    sget v1, Les/y4;->durec_merge_image_tools_layout:I

    invoke-static {v0, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 2
    sget v0, Les/x4;->merge_image_close:I

    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->b:Landroid/widget/ImageView;

    .line 3
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    sget v0, Les/x4;->merge_image_confirm:I

    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->c:Landroid/widget/ImageView;

    .line 5
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 6
    sget v0, Les/x4;->merge_image_cur_duration:I

    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->d:Landroid/widget/TextView;

    .line 7
    sget v0, Les/x4;->merge_image_seek_bar:I

    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->e:Landroid/widget/SeekBar;

    const/16 v1, 0x63

    .line 8
    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setMax(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->e:Landroid/widget/SeekBar;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$a;-><init>(Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;)V

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 10
    sget v0, Les/x4;->merge_image_checkbox:I

    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->f:Landroid/widget/CheckBox;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const/16 v0, 0x8

    .line 5
    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->g:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;

    if-eqz v0, :cond_0

    .line 7
    invoke-interface {v0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;->onDismiss()V

    :cond_0
    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/merge/b0;)V
    .locals 2

    .line 2
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v0

    long-to-float p1, v0

    const/high16 v0, 0x447a0000    # 1000.0f

    div-float/2addr p1, v0

    const/high16 v0, 0x41200000    # 10.0f

    mul-float p1, p1, v0

    const/high16 v0, 0x3f800000    # 1.0f

    sub-float/2addr p1, v0

    float-to-int p1, p1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->e:Landroid/widget/SeekBar;

    invoke-virtual {v0, p1}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->f:Landroid/widget/CheckBox;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->b:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->c:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_2

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->g:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;

    if-eqz p1, :cond_1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->e:Landroid/widget/SeekBar;

    invoke-virtual {p1}, Landroid/widget/SeekBar;->getProgress()I

    move-result p1

    add-int/lit8 p1, p1, 0x1

    int-to-float p1, p1

    const/high16 v0, 0x41200000    # 10.0f

    div-float/2addr p1, v0

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->g:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;

    const/high16 v1, 0x447a0000    # 1000.0f

    mul-float p1, p1, v1

    float-to-long v1, p1

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->f:Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p1

    invoke-interface {v0, v1, v2, p1}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;->a(JZ)V

    .line 7
    :cond_1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->a()V

    :cond_2
    :goto_0
    return-void
.end method

.method public setOnImageToolListener(Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView;->g:Lcom/esfile/screen/recorder/videos/merge/ui/ImageToolsView$b;

    return-void
.end method
